package utils;

import java.util.Date;
import java.util.List;

/***
 * Class to encapsulate the notification details sent to the client
 * @author Dalia,Aya
 *
 */

public class NotificationD{
	
	public long id;
	
	String name;
	
	String phone;
	
	String status;
	
	String place;
	
	Date startDate;

	Date endDate;
	
	boolean type;
	
	int when;

	long req_id;
	
	int ntype;
	
	//Constructors:
	public NotificationD()
	{
		
	}
	
	public static String print(List<NotificationD> not)
	{
		String out = "";
		for(NotificationD n : not)
		{
			out += "Name:"+n.name+" Status:"+n.status+" Place:"+n.place
					+" Start Date:"+n.startDate+" End Date:"+n.endDate
					+" Type:"+n.type+" When:"+n.when+" Request ID:"+n.req_id+"\n";
		}
		return out;
	}
	
	public NotificationD(String name, String status, String place, 
			boolean type, int when, long r_id, String phone)
	{
		this.name = name;
		this.status = status;
		this.place = place;
		this.type = type;
		this.when = when;
		this.req_id = r_id;
		this.phone = phone;
	}
	
	public NotificationD(String name, String status, String place, 
			Date startDate,Date endDate,
			boolean type, int when, long r_id, String phone)
	{
		this.name = name;
		this.status = status;
		this.place = place;
		this.startDate=startDate;
		this.endDate=endDate;
		this.type = type;
		this.when = when;
		this.req_id = r_id;
		this.phone = phone;
	}
	
	public NotificationD(String name, String status, String place, 
			Date startDate,Date endDate,
			boolean type, int when, long r_id, String phone,int ntype)
	{
		this.name = name;
		this.status = status;
		this.place = place;
		this.startDate=startDate;
		this.endDate=endDate;
		this.type = type;
		this.when = when;
		this.req_id = r_id;
		this.phone = phone;
		this.ntype=ntype;
	}
	
	public NotificationD(String name, String status, String place, boolean type, 
			int when, long r_id, String phone, int req_type)
	{
		this.name = name;
		this.status = status;
		this.place = place;
		this.type = type;
		this.when = when;
		this.req_id = r_id;
		this.ntype = req_type;
		this.phone = phone;
	}
	
	public NotificationD(String name, String place, boolean type, 
			int when)
	{
		this.name = name;
		this.place = place;
		this.type = type;
		this.when = when;
	}
}
